<?php
Yii::import('zii.widgets.CPortlet');

class PostIndex extends CPortlet {
    public $lang = 'vi';

    protected function renderContent(){
        $cachePost = CreateCache::usingCache('Post', true, '', $this->lang, 'ordering', '', '', '', '', Cache_Time, 5, 1, '', true);
        $this->render('PostIndex', array(
            'posts' => $cachePost
        ));
    }
}
